﻿
using UnityEngine;
using FrameWorkSong;
using UnityEngine.UI;

public class ExtentionExamples : MonoBehaviourSimplify
{
    public override void OnBeforeDestroy(){}

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            GetColor("#ba5959");
        }
    }
    void GetColor(string s)
    {
        GameObject gameObject = new GameObject();
        gameObject.transform.parent = UIManager.CanvasTransform;
        Color color = new Color();
        gameObject.AddComponent<Image>().color = color.ToRGB(s);
    }
}
